<%@ page language="java" contentType="text/html; charset=US-ASCII"
    pageEncoding="US-ASCII"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
        <link rel="stylesheet" href="style.css" />
        <title>List of all Equipments</title>
    </head>
    <body>
        <s:set name="l" value="lstEq"/>
        <s:if test="%{#session['connecte']==true}" >
            <s:include value="home.jsp"></s:include>
            <s:if test="%{#l.size() > 0}">
                <table class="list-eq"><tr><p>
                    <th class="tdlarg-eq"></th>
                    <th class="tdlarg-eq"></th>
                    <th class="tdlarg-eq"></th>
                    <th class="tdlarg-eq">Adresse IP</th>
                    <th class="tdlarg-eq">Description</th>
                    <th class="tdlarg-eq">Nom DNS</th>
                    <th class="tdlarg-eq">Type</th>
                </p></tr></table>
                <s:iterator value="l">
                <s:iterator>
                    <table class="list-eq"><tr><p>
                    <td class="tdlarg-eq" align="right">
                        <s:form action="gotomodifEq">
                            <s:hidden name="ip"/>
                            <s:hidden name="description"/>
                            <s:hidden name="dns"/>
                            <s:hidden name="type"/>
                            <s:hidden name="id"/>
                            <s:submit value="Modify"></s:submit>
                        </s:form>
                    </td>
                    <td class="tdlarg-eq">
                        <s:form action="getRmiInfo">
                            <s:hidden name="ip"/>
                            <s:hidden name="id"/>
                            <s:submit value="RMI Info"></s:submit>
                        </s:form>
                    <td/>
                    <td class="tdlarg-eq">
                        <s:form action="listEqSystemInformation">
                            <s:hidden name="id"/>
                            <s:submit value="Historique SysInf"></s:submit>
                        </s:form>
                    <td/>
                    <td class="tdlarg-eq"><s:property value="ip"/></td>
                    <td class="tdlarg-eq"><s:property value="description"/></td>
                    <td class="tdlarg-eq"><s:property value="dns"/></td>
                    <td class="tdlarg-eq"><s:property value="type"/></td>
                    </p></tr></table>
                  </s:iterator>
                </s:iterator>
                
            </s:if>
            </s:if>
    </body>
</html>
